package com.example.pufang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.PageParamRequest;
import com.example.pufang.pojo.User;
import com.example.pufang.vo.PageListVo;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserService extends IService<User> {

    PageListVo getListByPage(@RequestParam PageParamRequest pageParamRequest, String searchPhone, String searchName,
                             String searchRealName);

    User getUserByPhone(String phone);

    Boolean register(User user);

    Boolean ban(User user);

    Boolean cancelBan(User user);

}
